﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inspinia_MVC5.Models
{
    /// <summary>
    /// 教师表
    /// </summary>
    public class Teacher
    {
        [Key]
        public int ID { get; set; }

        [StringLength(50)]
        [Display(Name = "姓名")]
        [Required]


        public string TeaName { get; set; }

        [StringLength(50)]
        [Display(Name = "工号")]

        public string TeaJobNum { get; set; }

        [StringLength(50)]
        [Display(Name = "身份证号")]
        [Required]


        public string TeaIdCard { get; set; }
        [Display(Name = "系别")]
        [Required]



        public int? DepartmentId { get; set; }

        [StringLength(50)]
        [Display(Name = "密码")]

        public string TeaPwd { get; set; }

        [StringLength(50)]
        [Display(Name = "手机")]

        public string TeaPhone { get; set; }

        [Display(Name = "状态")]

        public int? Status { get; set; }
        public string Photo { get; set; }


        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Borrow> Borrow { get; set; }

        public virtual Department Department { get; set; }
    }
}